//
// Copyright (c) 2010 xiaoningyb (xiaoningyb@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//

#ifndef TINYSHARING_CONFIG_H
#define TINYSHARING_CONFIG_H

namespace tinysharing
{
    inline bool __isbigendian()
    {
        union
        {
            long l;
            char c[sizeof(long)];
        } u;

        u.l = 1;
        return (u.c[sizeof(long) - 1] != 1);
    }

    const std::size_t tinysharing_magic_word = 0x19811024;
    const std::size_t tinysharing_message_version = 0x1;
    
} // namespace tinysharing

#endif // TINYSHARING_CONFIG_H
